package com.longdaji.decoration.ui.activitiesOfCommunity.hotVideo;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.longdaji.decoration.R;
import com.longdaji.decoration.base.BaseActivity;

import javax.inject.Inject;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class HotVideoActivity extends BaseActivity implements HotVideoContract.View {

    @Inject
    HotVideoContract.Presenter mPresenter;

    @BindView(R.id.tv_tool_title)
    TextView tvTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_hot_video);
        setUnBinder(ButterKnife.bind(this));
        if (mPresenter != null) {
            mPresenter.setView(this);
        }
        tvTitle.setText("热度视频");

    }

    @OnClick({R.id.rl_tool_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.rl_tool_back:
                finish();
                break;
            default:
                break;
        }
    }


    @Override
    public void onDestroy() {
        super.onDestroy();
        if (mPresenter != null)
            mPresenter.detachView();
    }
}
